﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlatRedBall.Graphics;
using FlatRedBall.Input;
using FlatRedBall;



namespace TopDownShooter.Screens
{
    public class PauseScreen : Screen
    {
        public PauseScreen()
            : base("PauseScreen")
        { }

        public override void Initialize()
        {
            // Set the screen up here instead of in the Constructor to avoid
            // exceptions occurring during the constructor.


            base.Initialize();
            Text HelpText = TextManager.AddText("Game paused!\n\n\n\n\n\n\n\nPress Escape to resume.");
            mTexts.Add(HelpText);
            HelpText.Scale = HelpText.Spacing = 3;
            //HelpText.DisplayText = HelpTextString;

            HelpText.X = SpriteManager.Camera.X - 20;
            HelpText.Y = SpriteManager.Camera.Y;
            
            
        }

        public override void Activity(bool firstTimeCalled)
        {
            if (InputManager.Keyboard.KeyPushed(Microsoft.Xna.Framework.Input.Keys.Escape))
            {
                
                IsActivityFinished = true;
            }
            base.Activity(firstTimeCalled);
        }

        public override void Destroy()
        {
            base.Destroy();
        }
    }
}
